package com.pzhu.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * @TableName goods
 */
@Data
@TableName(value = "goods")
@AllArgsConstructor
@NoArgsConstructor
public class Goods {
    /**
     * 商品id
     */
    @TableId(type = IdType.AUTO)
    private Integer goodsId;

    /**
     * 商家id
     */
    private Integer goodsBusinessId;

    /**
     * 商品名
     */
    private String goodsName;

    /**
     * 商品介绍
     */
    private String goodsIntroduce;


    /**
     * 商品类型
     */
    private String goodsType;

    /**
     * 图片
     */
    private byte[] goodsImg;

    /**
     * 价格
     */
    private BigDecimal goodsPrice;

    /**
     * 库存
     */
    @Version
    private Integer goodsStock;


    /**
     * 删除
     */
    private Integer goodsDel;

    /**
     *
     */

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}
